package com.iweb.client.fallback;

import com.iweb.client.UserClient;
import com.iweb.model.User;
import org.springframework.stereotype.Component;

/**
 * 作者: jack
 * 时间: 2020-07-07 19:47
 * 描述: UserClientFallback
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setName("用户不存在");
        return user;
    }
}
